package com.cxx.home.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.cxx.framework.data.AbstractIdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("travel_record")
public class TravelRecord extends AbstractIdEntity {
    @TableField("travel_id")
    private Long travelId;

    @TableField("date")
    private Date date;

    @TableField(value = "persons", typeHandler = JacksonTypeHandler.class)
    private List<String> persons;
}
